package com.jinsilu.freight.http.request;

import com.hjq.http.config.IRequestApi;
import com.hjq.http.config.IRequestType;

/**
 * author : byd
 * time   : 2019/12/07
 * desc   : 更换手机号
 */
public final class ResetPhoneApi implements IRequestApi {

    /**
     * 手机号
     */
    private String phone;
    /**
     * 验证码
     */
    private String code;

    public ResetPhoneApi setPhone(String phone) {
        this.phone = phone;
        return this;
    }

    public ResetPhoneApi setCode(String code) {
        this.code = code;
        return this;
    }

    @Override
    public String getApi() {
        return "api/change/phone";
    }

}